n=int(input("请输入您要阶乘的数n："))
sum=1
for i in  range(1,n+1):
    m=n-i+2
    for j in range(1,m):
        sum*=j
    print(sum)
    sum=1



